﻿//Copyright (C) Riwut Libinuko, 2010 - Ideas For Free
//http://blog.libinuko.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharePointZip.Base;
using ICSharpCode.SharpZipLib.Zip;
using SharePointZip.Controller;
using System.IO;
using Microsoft.SharePoint;

namespace SharePointZip.Tools
{
    /// <summary>
    /// Deflatter implementation using <see cref="ICSharpCode.SharpZipLib.Zip.ZipOutputStream"/>ZipOutputStream from <seealso cref="SharpZipLib"/>.
    /// </summary>
    public class SharpZipLibDeflater:
        DeflaterBase<ZipOutputStream>
    {
        #region ctor
        public SharpZipLibDeflater() : base()
        {

        }
        

        public SharpZipLibDeflater(Stream outStream)
            : base()
        {
            if (ZipEngine == null)
            {
                zipEngine = new ZipOutputStream(outStream);
                zipEngine.SetLevel(9);
                zipEngine.IsStreamOwner = false;
            }

        }

        #endregion

        public override Stream StartCompressingStream<T>(T objSrc)
        {
            throw new NotImplementedException();
        }
    }

}
